package club.janna.jrpc.service.demo.service.impl;

import club.janna.jrpc.annotation.JRPCService;
import club.janna.jrpc.service.demo.domain.User;
import club.janna.jrpc.service.demo.service.UserService;

/**
 * @author Panbo.Guo
 */
@JRPCService
public class UserServiceImpl implements UserService {
    @Override
    public User findById(Long id) {
        User user = new User();
        user.setId(1L);
        user.setUsername("janna");
        user.setAge(18);
        return user;
    }
}
